package com.sinosoft.hydra.um.repositories;

import java.util.List;

import cn.com.sinux.spring.repositories.IBaseRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.sinosoft.hydra.um.domain.permission.SysLogInfo;
//use/um_developer/com.sinosoft.hydra.um.git

/**
 * 日志消息数据层
 * 
 * @author Administrator
 * 
 */
public interface SysLogInfoRepository extends IBaseRepository<SysLogInfo, String> {
	
	/**
	 * 根据日志id删除日志
	 * @param ids id的list集合
	 */
	@Query("delete from SysLogInfo  where id in (?1)")
	@Modifying
	public void deleteLi(List<String> ids);
	
	/**
	 * 根据id查询日志
	 * @param ids 日志id的list集合
	 * @return 返回日志对象list集合
	 */
	@Query("from SysLogInfo where id in (?1)")
	public List<SysLogInfo> queryPage(List<String> ids);
}
